Ext.application({
	name : "HelloExt",
	launch : function() {
		Ext.create("Ext.panel.Panel", {
			title : "Accordion Layout",
			width : 300,
			height : 300,
			x : 20,
			y : 30,
			layout:'accordion',
			defaults:{
				bodyStyle:'padding:15px'
			},
			layoutConfig:{
				titleCollapse:true,
				animate:true,
				activeOnTop:true
			},
			items:[{
				title:'panel1',
				html:'Panel content!'
			},{
				title:'panel2',
				html:'Panel content!'
			},{
				title:'panel3',
				html:'Panel content!'
			}],
			renderTo:Ext.getBody()
		});
	}
});